package ciarlini.ftpsynch.thread;

import ciarlini.ftpsynch.model.Download;
import ciarlini.thread.Processo;

public class DownloadAssincrono extends Processo {
	
	Download download;

	public DownloadAssincrono () {
		
	}

	public DownloadAssincrono (Download download) {
		setDownload(download);
	}

	@Override
	public void run() {
		if(this.download != null) {
			download.executar();
		}
	}

	private void setDownload(Download download) {
		this.download = download;
	}
}
